package com.shj.em.aa.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.shj.em.aa.dto.RoleSearchDTO;
import com.shj.em.aa.entity.Role;
import com.baomidou.mybatisplus.service.IService;
import com.shj.em.aa.entity.RoleRes;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * <p>
 * 角色 服务类
 * </p>
 *
 * @author Shen Huang Jian
 * @since 2018-06-25
 */
public interface RoleService extends IService<Role> {

    Set<Role> findRolesByUserLoginId(String userId);

    List<Role> findRolesByUserId(Long userId);

    List<Role> findAllRoles();

    /**
     * 分页查询
     * @return
     */
    Page<Role> queryRolePage(RoleSearchDTO searchDTO);

}
